@(projects: List[Resource])

<table class="projects-list">
	<tr>
		<th class="project-name">Name</th>
		<th class="project-description">Description</th>
		<th class="project-synchronize">Synchronize</th>
		<th class="project-default-config">Default config</th>
		<th class="project-created-date">Created date</th>
		<th class="project-last-modified-date">Last modified</th>
		<th class="project-run-tests">Tests</th>
	</tr>
	@for(project <- projects) {
		<tr>
			<td class="project-name"><a href="@routes.Projects.editProject(project.getId())" title="Show project">@project.getName()</a></td>
			<td class="project-description">@project.getDescription()</td>
			<td class="project-synchronize">@if(project.isRemote()){ <img alt="Synchronize project" title="Synchronize project" src="@routes.Assets.at("images/synchronized-s.png")"/>}else{}</td>
			<td class="project-default-config"><a href="@routes.Projects.showDefaultConfig(project.getId())" title="Show default configuration"><img alt="Default config" src="@routes.Assets.at("images/config.png")" /></a></td>
			<td class="project-created-date">@project.getCreateDate().format(play.Play.application().configuration().getString("datetime.format"))</td>
			<td class="project-last-modified-date">@project.getLastModified().format(play.Play.application().configuration().getString("datetime.format"))</td>
			<td class="project-run-tests"><a href="@routes.Projects.runTestsWithDefaultConfig(project.getId())" class="run-tests" title="Run (with default configuration)">Run &raquo;</a></td>
		</tr>
	}
</table>
